<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/7
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<div class="col-md-12 text-right">
<ol class="breadcrumb" id="info">
    <li id="li1"><span>${user.username}您好，欢迎来到服装专卖店！</span>
        <c:choose>
            <c:when test="${empty user}">
                <a href="/login.jsp" data-toggle="modal">[登录]</a>&nbsp;<a href="/register.jsp" data-toggle="modal">[新用户注册]</a></li>
            </c:when>
            <c:otherwise>
                <li><a href="/personal.jsp" onclick="user()">个人中心 <span class="badge" id="user"></span></a></li>
                <li><a href="${root}/exit" onclick="exit()">退出 <span class="badge" id="exit"></span></a></li>
            </c:otherwise>
        </c:choose>
    <li><a href="#" onclick="showCart()">购物车 <span class="badge" id="cartBadge"></span></a></li>


</ol>
</div>